﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmManualesPartesVehiculosCargaManual.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmManualesPartesVehiculosCargaManual" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%">
        <div class="main-titulo" style="width: 90%;">
            Carga manual</div>
        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" OnClick="btnSalir_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Text="Salir">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
       
    </div>
    <script language="javascript" type="text/javascript">
    // <![CDATA[

        function OnGridFocusedRowChanged() {

            gvSistemaModelo.GetRowValues(gvSistemaModelo.GetFocusedRowIndex(), 'DES_IMAGEN', OnGetRowValues);

        }

        function OnGetRowValues(values) {

            imagenAgregar.SetImageUrl("/Archivos Imagen/" + values)

        }

        function MostrarDetalleImp() {
            btnMostrarDetalleImp.DoClick();
        }
               
    // ]]>
    </script>
    <script type="text/javascript">
    // <![CDATA[

        function ShowPopupMsjSql() {
            PopupMsjSql.Show();

        }

        function ShowPopupReemplazarImg() {
            PopupReemplazarImg.Show();

        }
        function ShowPopupEliminarArticulo() {
            PopupEliminarArticulo.Show();

        }
        function ShowPopupAnularArticulo() {
            PopupAnularArticulo.Show();

        }
         
    // ]]> 
    </script>
    <script type="text/javascript">
        function soloLetras(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " 0123456789áéíóúabcdefghijklmnñopqrstuvwxyz";
            especiales = [40, 41, 47, 46, 45, 61, 95, 59, 58, 38, 34, 33, 42, 43, 35, 36, 37, 92, 93, 94, 126, 125, 124, 127, 168];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        function Letras(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
            especiales = [32];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        function soloNumero(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "0123456789";
            especiales = [32];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        function numeroLetra(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " 0123456789abcdefghijklmnopqrstuvwxyz";
            especiales = [32];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="content-form">
               
                <dx:ASPxRoundPanel ID="PRPanel1" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" GroupBoxCaptionOffsetX="0px" GroupBoxCaptionOffsetY="0px"
                    HeaderText="" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    ShowHeader="False" View="GroupBox">
                    <ContentPaddings PaddingBottom="0px" PaddingLeft="0px" PaddingRight="0px" 
                        PaddingTop="0px" />
                    <HeaderStyle>
                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                    </HeaderStyle>
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <table style="width: 100%;">
                                <tr>
                                    <td class="filas2" valign="top">
                                        <table>
                                            <tr>
                                                <td>
                                                    Modelo:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxComboBox ID="cboModelo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnMostrar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnMostrar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Mostrar" Width="100px" AutoPostBack="False" Theme="Office2010Blue">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnAgregar1" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Agregar" AutoPostBack="False" Width="100px" Theme="Office2010Blue">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupAgregar.Show();

}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnAnular" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Eliminar" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Show();
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <dx:ASPxGridView ID="gvSistemaModelo" runat="server" AutoGenerateColumns="False"
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            OnPageIndexChanged="gvSistemaModelo_PageIndexChanged" Width="100%" KeyFieldName="ID_SISTEMA"
                                            ClientInstanceName="gvSistemaModelo" OnAfterPerformCallback="gvSistemaModelo_AfterPerformCallback">
                                            <ClientSideEvents FocusedRowChanged="function(s, e) {	
	MostrarDetalleImp();
}" />
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_SISTEMA" VisibleIndex="0" Width="20px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Descripción ingles" FieldName="DES_SISTEMA_INGLES"
                                                    VisibleIndex="1" Width="200px">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <CellStyle HorizontalAlign="Left">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn VisibleIndex="2" Caption="Foto" Width="20px">
                                                    <DataItemTemplate>
                                                        <dx:ASPxHyperLink ID="btnDetalle" runat="server" ClientInstanceName="btnDetalle"
                                                            Cursor="pointer" Text='<%# (Eval("DES_IMAGEN").ToString().Length==0)? "NO": "SI" %>'>
                                                            <ClientSideEvents Click="function(s, e) {
   e.processOnServer = true;
	MostrarDetalleImp();
    PopupImagenEditar.Show();
}" />
                                                        </dx:ASPxHyperLink>
                                                    </DataItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ID_MODELO" Visible="False" VisibleIndex="5">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="DES_IMAGEN" VisibleIndex="4" Visible="False">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Nro. página" FieldName="NRO_PAGINA" ShowInCustomizationForm="True"
                                                    VisibleIndex="3" Width="10px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" AllowDragDrop="False" AllowGroup="False" />
                                            <SettingsPager PageSize="19">
                                            </SettingsPager>
                                            <SettingsLoadingPanel Delay="1" Text="Cargando..." />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                    <td class="filas2" valign="top" style="width: 100%;">
                                        <table>
                                            <tr>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnModificar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Modificar" AutoPostBack="False" ClientVisible="False" Width="100px" OnClick="btnModificar_Click">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnAgregar2" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Agregar" AutoPostBack="False" ClientVisible="False" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupBusqueModelo.Show();
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnQuitar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Eliminar" OnClick="btnQuitar_Click" ClientVisible="False" Width="100px">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnanularArticulo" runat="server" ClientVisible="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Anular" Width="100px" OnClick="btnanularArticulo_Click">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <dx:ASPxGridView ID="gvDetail" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" AutoGenerateColumns="False" KeyFieldName="COD_MATERIAL"
                                            Width="100%" OnPageIndexChanged="gvDetail_PageIndexChanged" ClientVisible="False"
                                            ClientInstanceName="gvDetail" OnAfterPerformCallback="gvDetail_AfterPerformCallback"
                                            OnHtmlRowPrepared="gvDetail_HtmlRowPrepared">
                                            <Columns>
                                                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="17" Width="10px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </dx:GridViewCommandColumn>
                                                <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MATERIAL" VisibleIndex="1"
                                                    Width="30px" ToolTip="Código">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Des. español" FieldName="NOM_MATERIAL_ESP" VisibleIndex="2"
                                                    ToolTip="Des. español">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="DES_MODELO" Visible="False" VisibleIndex="3">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ID_MODELO" Visible="False" VisibleIndex="5"
                                                    Width="10px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ID_SISTEMA" Visible="False" VisibleIndex="6">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NRO_PAGINA" Visible="False" VisibleIndex="7">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NRO_ITEM_MANUAL" VisibleIndex="0" Caption="Nro.Item"
                                                    Width="10px" ToolTip="Nro.Item" ShowInCustomizationForm="True">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="CANTIDAD" VisibleIndex="8" Caption="Cantidad"
                                                    Width="10px" ToolTip="Cantidad">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Remark ingles" FieldName="REMARK_ING" VisibleIndex="10"
                                                    Width="100px" ToolTip="Remark ingles">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NOM_MATERIAL_INGLES" VisibleIndex="4" Caption="Des. ingles"
                                                    ToolTip="Des. ingles">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="REMARK_ESP" VisibleIndex="11" Caption="Remark.español"
                                                    Width="100px" ToolTip="Remark.español">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="IND_ESTADO" VisibleIndex="12" Visible="False">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NRO_ITEM_SIST" Visible="False" VisibleIndex="13">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Des.observación" FieldName="DES_OBSERVACION_TECNICA"
                                                    ShowInCustomizationForm="True" VisibleIndex="9" Visible="False">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Ind." FieldName="IND_OBSERVACION_TECNICA" ShowInCustomizationForm="True"
                                                    ToolTip="Ind.observación" VisibleIndex="14" Width="10px" Visible="False">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ID_MAN_SISTEMA_ARTICULO" Visible="False" VisibleIndex="15">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" AllowSort="False" />
                                            <SettingsPager PageSize="15">
                                            </SettingsPager>
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxRoundPanel>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="PopupEditar" runat="server" AllowDragging="True" ClientInstanceName="PopupEditar"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="600px"
                                HeaderText="Editar" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxRoundPanel ID="RpModificaDatos" runat="server" Width="600px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                            GroupBoxCaptionOffsetY="-19px" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                            <HeaderStyle>
                                                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                            </HeaderStyle>
                                            <PanelCollection>
                                                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                Modelo:&nbsp;&nbsp;&nbsp;&nbsp;
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtDesModelo" runat="server" Width="300px" ClientEnabled="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Sistema:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtDesSistema" runat="server" Width="300px" ClientEnabled="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Código:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtpopCodigo" runat="server" Width="300px" onkeypress="return numeroLetra(event)"
                                                                    MaxLength="8">
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Descripción español:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtDescripcionEsp" runat="server" Width="300px" onkeypress="return soloLetras(event)"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="100">
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Descripción ingles:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtDescripcionIng" runat="server" Width="300px" onkeypress="return soloLetras(event)"
                                                                    MaxLength="100">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Nro. item:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtNroitem" runat="server" Width="300px" onkeypress="return numeroLetra(event)"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="5">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Nro.item sistema
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtItemSistema" runat="server" Width="300px" onkeypress="return soloNumero(event)"
                                                                    MaxLength="5">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Nro. pagina:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtNroPagina" runat="server" Width="300px" onkeypress="return soloNumero(event)"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="3">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Cantidad:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtCantidad" runat="server" Width="300px" onkeypress="return soloNumero(event)"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="4">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Remark ingles:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtRemarkIng" runat="server" Width="300px" onkeypress="return soloLetras(event)"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="100">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Remark español :
                                                            </td>
                                                            <td>
                                                                <dx:ASPxTextBox ID="txtRemarEsp" runat="server" Width="300px" onkeypress="return soloLetras(event)"
                                                                    MaxLength="100">
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Estado:
                                                            </td>
                                                            <td>
                                                                <dx:ASPxCheckBox ID="chkEstado" runat="server" CheckState="Unchecked" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Width="100px">
                                                                </dx:ASPxCheckBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                        <table>
                                            <tr>
                                                <td>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp;
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnPopupGrabar" runat="server" Text="Grabar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        OnClick="btnPopupGrabar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Cancelar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupEditar.Hide();
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupAgregar" runat="server" ClientInstanceName="PopupAgregar"
                                AllowDragging="True" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" HeaderText="Busqueda de sistemas" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Height="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td class="filas2">
                                                    Nombre:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxTextBox ID="txtBuscarSistema" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnBuscar" runat="server" Text="Buscar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        OnClick="btnBuscar_Click">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td class="filas2" colspan="5">
                                                    <dx:ASPxGridView ID="gvListarSubSistema" runat="server" AutoGenerateColumns="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100%" KeyFieldName="ID_SISTEMA" OnAfterPerformCallback="gvListarSubSistema_AfterPerformCallback"
                                                        OnPageIndexChanged="gvListarSubSistema_PageIndexChanged">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                                VisibleIndex="0">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_SISTEMA" ShowInCustomizationForm="True"
                                                                VisibleIndex="1" Width="20px">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Descripción español" FieldName="DES_SISTEMA"
                                                                ShowInCustomizationForm="True" VisibleIndex="2" Width="300px">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Descripción ingles" FieldName="DES_SISTEMA_INGLES"
                                                                ShowInCustomizationForm="True" VisibleIndex="4" Width="300px">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar" AutoPostBack="False" OnClick="btnAceptar_Click" Width="79px">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupAgregar.Hide();
	e.processOnServer = true;
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnCancelarPop" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Cancelar" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupAgregar.Hide();
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent5" runat="server">
                                                    <table>
                                                        <tr>
                                                            <td class="filas2" colspan="2">
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de eliminar este registro ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" class="filas2">
                                                                <dx:ASPxButton ID="btnEliminar" runat="server" AutoPostBack="False" 
                                                                    ClientInstanceName="btnEliminar" 
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                    CssPostfix="Office2010Blue" OnClick="btnEliminar_Click" 
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                                                    Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
	e.processOnServer = true;
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td align="left" class="filas2">
                                                                <dx:ASPxButton ID="btnPopCancelar" runat="server" AutoPostBack="False" 
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                    CssPostfix="Office2010Blue" 
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                                                    Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupEliminarArticulo" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupEliminarArticulo" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent2" runat="server">
                                                    <table>
                                                        <tr>
                                                            <td colspan="3">
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de eliminar este registro(s) ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="3">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="3">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            </td>
                                                            <td class="filas2">
                                                                <dx:ASPxButton ID="btnEliminarArticulo" runat="server" AutoPostBack="False" ClientInstanceName="btnEliminar"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    OnClick="btnEliminarArticulo_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Si" Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupEliminarArticulo.Hide();
	e.processOnServer = true;
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td class="filas2">
                                                                <dx:ASPxButton ID="ASPxButton3" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="No" Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupEliminarArticulo.Hide();
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupAnularArticulo" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupAnularArticulo" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent3" runat="server">
                                                    <table>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de anular este registro(s)
                                                                ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" class="filas2">
                                                                <dx:ASPxButton ID="btnAnularRegistro" runat="server" AutoPostBack="False" 
                                                                    ClientInstanceName="btnEliminar" 
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                    CssPostfix="Office2010Blue" OnClick="btnAnularRegistro_Click" 
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Si" 
                                                                    Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupAnularArticulo.Hide();
	e.processOnServer = true;
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td class="filas2" align="left">
                                                                <dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="No" Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupAnularArticulo.Hide();
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupMsjSql" runat="server" AllowDragging="True" ClientInstanceName="PopupMsjSql"
                                CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent1" runat="server">
                                                    <table  style="width:100%;">
                                                        <tr>
                                                            <td class="filas2" align="center">
                                                               <dx:ASPxLabel ID="lblMsjSql" runat="server" Font-Size="8pt">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                       
                                                    </table>
                                                    <table style="width:100%;">
                                                        <tr>
                                                        
                                                            <td class="filas2" align="center">
                                                       
                                                                <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" ClientInstanceName="btnEliminar"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar"
                                                                    Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
PopupMsjSql.Hide();
}" />
                                                                    <Paddings Padding="4px" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <div>
                                <dx:ASPxPopupControl ID="PopupBusqueModelo" runat="server" AllowDragging="True" ClientInstanceName="PopupBusqueModelo"
                                    CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Busqueda" Modal="True"
                                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="600px" EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                                            <div>
                                                <table>
                                                    <tr>
                                                        <td class="filas2">
                                                            Codigo:
                                                        </td>
                                                        <td class="filas2">
                                                            <dx:ASPxTextBox ID="txtPopCodigoMo" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <Paddings Padding="4px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            Descripción:
                                                        </td>
                                                        <td class="filas2">
                                                            <dx:ASPxTextBox ID="txtPopNomMateriaMo" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <Paddings Padding="4px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas2">
                                                            <dx:ASPxButton ID="btnPopBuscarMo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" OnClick="btnPopBuscarMo_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Text="Buscar">
                                                                <Paddings Padding="4px" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas2" colspan="5">
                                                            <dx:ASPxGridView ID="gvBusquedaModelo" runat="server" AutoGenerateColumns="False"
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                KeyFieldName="COD_MATERIAL" OnAfterPerformCallback="gvBusquedaModelo_AfterPerformCallback"
                                                                OnPageIndexChanged="gvBusquedaModelo_PageIndexChanged" Width="100%">
                                                                <Columns>
                                                                    <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                                        VisibleIndex="0">
                                                                        <ClearFilterButton Visible="True">
                                                                        </ClearFilterButton>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <CellStyle HorizontalAlign="Center">
                                                                        </CellStyle>
                                                                    </dx:GridViewCommandColumn>
                                                                    <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MATERIAL" ShowInCustomizationForm="True"
                                                                        VisibleIndex="1">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <CellStyle HorizontalAlign="Center">
                                                                        </CellStyle>
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn Caption="Descripción" FieldName="NOM_MATERIAL_INGLES"
                                                                        ShowInCustomizationForm="True" VisibleIndex="2">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <CellStyle HorizontalAlign="Center">
                                                                        </CellStyle>
                                                                    </dx:GridViewDataTextColumn>
                                                                </Columns>
                                                                <Settings ShowFilterRow="True" />
                                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanelOnStatusBar>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </Images>
                                                                <ImagesFilterControl>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </ImagesFilterControl>
                                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                    </Header>
                                                                    <LoadingPanel ImageSpacing="5px">
                                                                    </LoadingPanel>
                                                                </Styles>
                                                                <StylesPager>
                                                                    <PageNumber ForeColor="#3E4846">
                                                                    </PageNumber>
                                                                    <Summary ForeColor="#1E395B">
                                                                    </Summary>
                                                                </StylesPager>
                                                                <StylesEditors ButtonEditCellSpacing="0">
                                                                    <ProgressBar Height="21px">
                                                                    </ProgressBar>
                                                                </StylesEditors>
                                                            </dx:ASPxGridView>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table>
                                                    <tr>
                                                      
                                                        <td class="filas2" style="margin-left: 40px">
                                                            <dx:ASPxButton ID="btnPopAceptarMo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Text="Aceptar" AutoPostBack="False" OnClick="btnPopAceptarMo_Click">
                                                                <ClientSideEvents Click="function(s, e) {
	PopupBusqueModelo.Hide();
	e.processOnServer = true;
}" />
                                                                <Paddings Padding="4px" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td class="filas2">
                                                            <dx:ASPxButton ID="btnPopCancelarMo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Text="Cancelar" AutoPostBack="False">
                                                                <ClientSideEvents Click="function(s, e) {
	PopupBusqueModelo.Hide();
}" />
                                                                <Paddings Padding="4px" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </div>
                            <dx:ASPxButton ID="btnMostrarDetalleImp" runat="server" ClientInstanceName="btnMostrarDetalleImp"
                                ClientVisible="false" Width="1px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnMostrarDetalleImp_Click" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                AutoPostBack="False">
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <dx:ASPxPopupControl ID="PopupImagenEditar" runat="server" AllowDragging="True" ClientInstanceName="PopupImagenEditar"
        CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Foto del sistema"
        Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="700px"
        AllowResize="True" Height="400px" ResizingMode="Postponed" ShowPageScrollbarWhenModal="True"
        EnableHotTrack="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3" style="width: 100%; height: 100%;">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <dx:ASPxImage ID="imagenAgregar" runat="server" Height="500px" Width="100%" ClientInstanceName="imagenAgregar"
                                        Cursor="pointer">
                                    </dx:ASPxImage>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                       
                        <td class="filas2">
                            <dx:ASPxUploadControl ID="UploaderAgregar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="400px">
                                <ValidationSettings MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}" AllowedFileExtensions=".jpg, .png" NotAllowedFileExtensionErrorText="Seleccioné un formato correcto">
                                </ValidationSettings>
                            </dx:ASPxUploadControl>
                        </td>
                      
                        <td class="filas2">
                            <dx:ASPxButton ID="btnModificarImg" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnModificarImg_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Text="Guardar" AutoPostBack="False">
                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupImagenEditar.Hide();
}" />
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                    </tr>
                    <tr>
                        
                        <td class="filas2">
                            <dx:ASPxLabel ID="lblMsj" runat="server" ForeColor="#FF3300">
                            </dx:ASPxLabel>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</asp:Content>
